package com.geek.javase.wcy03;

/**
 * @author wangchaoyang
 * @desc TODO
 * @date 2025/9/2
 */
public class TeacherMain {
    public static void main(String[] args) {
        //-------------- 无参构造方法 ----------------

Teacher t1 =new Teacher();
    t1.setAge(100);
    t1.setName("mm");
    t1.setGender('女');
    t1.setYard("计算机");
    t1.setNum(123456789);
    System.out.println(t1);
    t1.exercise();
    t1.grtclass();
                  //-------------- 有参构造方法 ----------------
        Teacher t2 = new Teacher("mm" , 303L , '女' , 23 , "计算机");
            System.out.println("姓名："+t2.getName());
            System.out.println(t2);
            t2.exercise();
            t2.grtclass();
    }
}
